#include <stdio.h>
void copy_arr(double ar[], const double source[], int num);
int main(void)
{
	double source[]= {1.1, 2.2, 3.3, 4.4, 5.5, 2.6, 5.4, 2.6, 2.2};
	double target1[3];
	
	copy_arr(target1, source, 7);
	int i;
	for(i =0; (unsigned int)i<sizeof target1/sizeof(target1[0]); i++)
		printf("%lf\t",target1[i]);
	return 0;
}

void copy_arr(double ar[], const double source[], int num)
{
	int i;
	for(i=4;i<num;i++){
		ar[i-4]=source[i];		
//		printf("%f\n",ar[i-4]);
	}

	return;
}
